package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

/**
 * 用户拥有的徽章
 */
public class UserBadge extends DataObject {

    /**
     * 唯一标识
     */
    private String uid;

    /**
     * 玩家id
     */
    private long userId;

    /**
     * 徽章id
     */
    private int badgeId;

    /**
     * 徽章类型
     */
    private int badgeType;

    /**
     * 是否财神送礼展示
     */
    private boolean disperseGoldShow;

    public UserBadge() {

    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }
    public int getBadgeId() {
        return badgeId;
    }

    public void setBadgeId(int badgeId) {
        if (this.badgeId != badgeId) {
            this.badgeId = badgeId;
            setUpdateOption();
        }
    }

    public int getBadgeType() {
        return badgeType;
    }

    public void setBadgeType(int badgeType) {
        if (this.badgeType != badgeType) {
            this.badgeType = badgeType;
            setUpdateOption();
        }
    }

    public boolean isDisperseGoldShow() {
        return disperseGoldShow;
    }

    public void setDisperseGoldShow(boolean disperseGoldShow) {
        if (this.disperseGoldShow != disperseGoldShow) {
            this.disperseGoldShow = disperseGoldShow;
            setUpdateOption();
        }
    }
}
